package demo3;

/**
 * @Author: Lenovo
 * @Date: 2024/5/22 22:44
 * @description:
 */
public abstract class Animal {
    public int age;
    public String name;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public abstract void eat();
    // 跑     飞    游泳  都写到当前Animal这个类？
}
